package com.one.common.model.extra;

import android.util.Log;

import java.io.Serializable;

/**
 * 可以不用取名字的携带参数
 * activity fragment跳转时
 *
 * 每次实例化都会将extra_index_加1
 * 即每次传递参数的key都不一样
 */
public abstract class BaseExtra implements Serializable {
    private static int sExtraNameIndex = 10086;
    public static String nextExtraName() {
        return "extra_index_" + (++sExtraNameIndex);
    }
    public static String sExtraName;

    public static String getExtraName() {
        return sExtraName;
    }

    public static void setExtraName(String extraName) {
        Log.e("jiejing", "改变 -> 改变 -> " + extraName+" "+sExtraNameIndex);
        sExtraName = extraName;
    }

}
